<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--批量邮件发送</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
<%@ include file="/comm.jsp"%>
	<script language="JavaScript"
		src="<%=request.getContextPath()%>/js/fck_email/fckeditor.js"></script>
	<script type="text/javascript">
	window.onload = function()
	{
		var sBasePath = '<%=request.getContextPath()%>/js/fck_email/' ;
		var oFCKeditor = new FCKeditor( 'content' ) ;
		oFCKeditor.BasePath	= sBasePath ;
		oFCKeditor.Height = 260 ;
		oFCKeditor.ToolbarSet = 'freemail';
		oFCKeditor.ReplaceTextarea() ;
	}
</script>
	<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 800;
}
-->
</style>
	<body>
		<s:form name="formpage" action="batchEmail_list" namespace="/seal">
			<div align="center">
				<%@ include file="/messages.jsp"%>
				<fieldset>
					<legend>
						筛选用户
					</legend>
					<table align="center" width="700" border="0">
						<tr>
							<td align="right">
								账户代码：
							</td>
							<td>
								<input name="username" type="text" maxlength="20" size="20"  title="支持模糊查询" />
							</td>
							<td align="right">
								国 家：
							</td>
							<td>
															
							</td>
						</tr>
						<tr>
							<td align="right">
								用户级别：
							</td>
							<td>
								<input type="checkbox" value="1" name="msgtype">
								公司管理员
								<input type="checkbox" value="2" name="msgtype">
								部门管理员
								<input type="checkbox" value="3" name="msgtype">
								操作员
							</td>
							<td align="right">
								用户语言：
							</td>
							<td>
								<input type="checkbox" value="1" name="lang" checked>
								中文
								<input type="checkbox" value="2" name="lang" checked>
								English
							</td>
							<td>
								&nbsp;&nbsp;
								<input type="submit" class="button" id="ok" name="ok"
									value=" 查 询 " />
							</td>
							<td></td>
						</tr>
					</table>
				</fieldset>
			</div>
			<table border="0" cellpadding="5" cellspacing="1" class="tb_datalist">
				<tr align="center" height="28px" class="tr_title">
					<td>
						<b>姓名</b>
					</td>
					<td>
						<b>Email</b>
					</td>
					<td>
						<b>公司名称</b>
					</td>
					<td>
						<b>注册日期</b>
					</td>
					<td>
						<b>用户级别</b>
					</td>
				</tr>
				<s:iterator id="sa" value="#request.list">
					<tr class="list_tr_item"
						onMouseOver="javascript:this.className='tr_selected';"
						onMouseOut="javascript:this.className='tr_even';">
						<td>
							<s:property value="#sa[0]" />
						</td>
						<td>
							<s:property value="#sa[1]" />
						</td>
						<td>
							<s:property value="#sa[2]" />
						</td>
						<td>
							<s:date name="#sa[3]" format="yyyy-MM-dd" />
						</td>
						<td>
							<s:property value="#sa[4]" />
						</td>
					</tr>
				</s:iterator>
			</table>
			<s:property value="#request.allowpage" escape="false" />

			<fieldset>
				<legend>
					批量邮件发送
				</legend>
				<table align="center" width="750">
					<tr>
						<td align="right" width="120">
							邮件标题：
						</td>
						<td>
							<input name="title" type="text" value="${template.title }"
								maxlength="40" size="50" class="required" title="*必填" />
						</td>
					</tr>
					<tr>
						<td align="right">
							正文内容：
						</td>
						<td>
							<textarea id="content" name="content" rows="6" cols="80">${template.content }</textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" class="button" id="ok" name="ok"
								value=" 发 送 " />
						</td>
					</tr>
				</table>
			</fieldset>

		</s:form>
	</body>
</html>
